<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>查看用户</title>
<script type="text/javascript">
</script>
</head>
<body>
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
        try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
    </script>

		<ul class="breadcrumb">
			<li><i class="ace-icon fa fa-home home-icon"></i> <a
				href="${ctx }/home/home">首页</a></li>
			<li class="active">系统管理</li>
			<li class="active">用户管理</li>
		</ul>
		<!-- .breadcrumb -->
	</div>
	<div class="page-content">
		<div class="page-header">
			<h1>
				用户管理 <small> <i class="ace-icon fa fa-double-angle-right"></i> 查看用户
				</small>
			</h1>
		</div>
		<!-- /.page-header -->
		<div class="row">
			<div class="col-xs-12">
				<table style="width: 100%; border: 0;" class="project-default">
					<tr>
						<td><b>用户账号</b></td>
						<td style="text-align: left;">${entity.userCode }</td>
						<td><b>用户姓名</b></td>
						<td style="text-align: left;">${entity.name }</td>
					</tr>
					<tr>
						<td><b>手机号码</b></td>
						<td style="text-align: left;">${entity.mobile }</td>
						<td><b>座机</b></td>
						<td style="text-align: left;">${entity.telephone }</td>
					</tr>
					<tr>
						<td><b>性别</b></td>
						<td style="text-align: left;"><select:write type="sex"
								value="${entity.sex }" /></td>
						<td><b>邮箱</b></td>
						<td style="text-align: left;">${entity.email }</td>
					</tr>
					<tr>
						<td><b>创建人</b></td>
						<td style="text-align: left;">${entity.createUser }</td>
						<td><b>创建时间</b></td>
						<td style="text-align: left;"><fmt:formatDate
								value="${entity.createTime }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
					</tr>
					<tr>
						<td><b>部门</b></td>
						<td style="text-align: left;">${entity.department.name }</td>
						<td><b>拥有角色</b></td>
						<td style="text-align: left;"><c:forEach
								items="${entity.roles }" var="role" varStatus="i">
								<c:choose>
									<c:when test="${i.index == 0 }">
    								${role.roleName }
    							</c:when>
									<c:otherwise>
    								，${role.roleName }
    							</c:otherwise>
								</c:choose>
							</c:forEach></td>
					</tr>
					<tr>
						<td><b>所属区域</b></td>
						<td style="text-align: left;" colspan="3">
							<area:write cityValue="${entity.city }" munValue="${entity.municipality }" proValue="${entity.province }"/>
						</td>
					</tr>
				</table>
			</div>
			<div class="col-xs-12" style="text-align: center; margin-top: 20px;">
				<button type="button" class="btn btn-default"
					onclick="javascript:window.location.href='${ctx}/user/list'">返回</button>
			</div>

		</div>

	</div>
</body>
</html>